package com.sanhuo.idms.dao;

import com.sanhuo.idms.entity.Tung;
import com.sanhuo.triild.Basic.BaseMapper;
import com.sanhuo.triild.annotation.Mapper;
import com.sanhuo.triild.annotation.Select;


@Mapper
public interface TungMapper extends BaseMapper<Tung> {

//    @Select("select * from tung where id = #{id}")
//    Tung findById(String id);
//
//    @Select("select * from tung")
//    List<Tung> findAll();
//
//    @InsertProvider(type = TungProvider.class, method = "insert")
//    void save(Tung tung);

    @Select("select count(*) from tung where num = #{num}")
    Integer countByNum(Integer num);

}
